package org.linphone.Bean;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class LandedDate {
	private SharedPreferences sharedPreferences;
	private Editor edit;
	private Context context;

	public LandedDate(Context context) {
		super();
		this.context = context;
		sharedPreferences = context.getSharedPreferences("bosideng",
				Context.MODE_WORLD_READABLE);
		edit = sharedPreferences.edit();
	}

	public String getPhone() {
		String name = sharedPreferences.getString("Phone", null);
		return name;
	}
	public String getuserId() {
		String name = sharedPreferences.getString("userId", null);
		return name;
	}
	public String gettime() {
		String name = sharedPreferences.getString("time", null);
		return name;
	}
	public int getid() {
		int name = sharedPreferences.getInt("id", 0);
		return name;
	}

	public String getCardNo() {
		String pass = sharedPreferences.getString("Phone", null);
		return pass;
	}
	public String getCardPassword() {
		String pass = sharedPreferences.getString("CardPassWord", null);
		return pass;
	}
	public void setPhone(String name) {
		edit.putString("Phone", name);
	}
	public void setuserId(String name) {
		edit.putString("userId", name);
	}
	public void settime(String name) {
		edit.putString("time", name);
	}
	public void setid(int name) {
		edit.putInt("id", name);
	}
	public void setCardNo(String name) {
		edit.putString("CardNo", name);
	}
	public void setCardPassword(String num) {
		edit.putString("CardPassword", num);
	}
}
